package com.ruoyi.forum.dependency;

import com.ruoyi.forum.api.vo.UserDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "ruoyi-user")
public interface AuthService {


    @RequestMapping(method = RequestMethod.GET, value = "/user/info")
    UserDetail getUserDetail(@RequestParam("uid") String uid);


    @RequestMapping(method = RequestMethod.POST, value = "/user/info/list/more")
    List<UserDetail> getUserList(@RequestBody List<String> uidList);


    @RequestMapping(method = RequestMethod.GET, value = "/user/info/byphone")
    UserDetail getUserDetailByPhone(@RequestParam("phone") String phone);


}
